<?php
include("conn.php");
if($_POST[submit])
{
	$sql="insert into info (id,money,address,inc,time) values('','$_POST[money]','$_POST[address]','$_POST[inc]','$_POST[time]')";
	mysql_query($sql);
	echo "<Script language='JavaScript'> alert('添加成功');</Script>";
}
?>

<form action="add.php" method="post">
金额: <input type="text" name="money" /><br />
地区: <input type="text" name="address" /><br />
单位：<input type="text" name="inc" /><br />
时间：<input type="text" name="time" /><br />
<input type="submit" name="submit" value="提交"/>
</form>


